layui.use(['jquery', 'layer'], function () {
    var $ = layui.jquery,
        layer = layui.layer;

    var HomeUtil = {
        getTotal: function () {
            $.ajax({
                type: "get",
                url: HuiqianUtil.getWebRootPath() + "/web/user/count.htmls",
                data: {},// 你的formid
                dataType: "JSON",
                success: function (data) {
                    if (data.success) {
                        $("#userTotal").html(data.data);
                    } else {
                        layer.msg("查询失败,请稍后重试.");
                    }
                },
                error: function () {
                    layer.msg("查询失败.");
                }
            });
        }
    }

    HomeUtil.getTotal();
});
